let main = document.querySelector('#main') 
let id = getQueryString('productid');
fetch('http://chst.vip:1234/api/getmoneyctrlproduct?productid='+ id)
.then(body => body.json())
.then(res => {
    console.log(res)
    let r = res.result[0];
    let reg = /(?<=imgurl=)[^'"]*/;
    let url = r.productImg2.match(reg);
    let el = `<h2>${r.productName}</h2>
     <div class="other">${r.productFrom} ${r.productTime} ${r.productTips}</div>
     <img class="smImg" src=${r.productImgSm}>
     <span>${r.productInfo} ${r.productInfo1} ${r.productInfo2}</span>
     <img src=${url[0]}>
     <div class="youhuo">${r.productCity}</div>
     <div class="comments">${r.productComment}</div>
   
    `
    main.innerHTML = el;
})